package com.java28.rbac.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

public class Permission {
    private Integer permissionid;
    private String permissionname;
    private String permissionpath;
    private Integer parentid;
    private String name;
    private boolean isParent = true;

    /**
     *
     * @return
     */
    public boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(boolean isparent) {
        this.isParent = isparent;
    }

    public String getName() {
        return name;
    }

    public Integer getPermissionid() {
        return permissionid;
    }

    public void setPermissionid(Integer permissionid) {
        this.permissionid = permissionid;
    }

    public String getPermissionname() {
        return permissionname;
    }

    public void setPermissionname(String permissionname) {
        this.permissionname = permissionname;
        this.name=permissionname;
    }

    public String getPermissionpath() {
        return permissionpath;
    }

    public void setPermissionpath(String permissionpath) {
        this.permissionpath = permissionpath;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }


}